home *** CD-ROM | disk | FTP | other *** search
/ Wayzata's Best of Shareware PC/Windows 1 / Wayzata's Best of Shareware for PC-Windows - Release 1 - Wayzata Technology (1993).iso / mac / DOS / TELECOMM / PCCP047 / EMU.H < prev    next >
C/C++ Source or Header  |  1992-08-18  |  2KB  |  96 lines

  1. /* Released to the Public Domain in 1992 by Peter Edward Cann. */
  2.  
  3.  
  4. /* Substitution Tokens for Function Sequences */
  5. /* n&0xff00 must be nonzero!!! */
  6.  
  7. #define END 0x0100
  8. #define BINCOL 0x0101
  9. #define BINROW 0x0102
  10. #define ASCDECCOL 0x0103
  11. #define ASCDECROW 0x0104
  12. #define ASCDECSEMILIST 0x0105
  13. #define GRABCHAR 0x0106
  14. #define GRAPHCHAR_T 0x0107
  15.  
  16.  
  17. /* Function Codes for Function Sequences */
  18.  
  19. #define CLEAR 0
  20. #define HOME 1
  21. #define CLREOL 2
  22. #define UP 3
  23. #define DOWN 4
  24. #define LEFT 5
  25. #define RIGHT 6
  26. #define GOTO 7
  27. #define NORMAL 8
  28. #define FAINT 9
  29. #define NOFAINT 10
  30. #define BOLD 11
  31. #define NOBOLD 12
  32. #define BLINK 13
  33. #define NOBLINK 14
  34. #define INVERSE 15
  35. #define NOINVERSE 16
  36. #define UPN 17
  37. #define DOWNN 18
  38. #define LEFTN 19
  39. #define RIGHTN 20
  40. #define ANSIATTRIB 21
  41. #define WRAP 22
  42. #define NOWRAP 23
  43. #define GOTOLINE 24
  44. #define GOTOCOL 25
  45. #define BINATTR 26
  46. #define GRAPHCHAR 27
  47. #define BEGGRAPH 28
  48. #define ENDGRAPH 29
  49. #define TAB 30  /* Non-destructive */
  50. #define BELL 31
  51. #define DTAB 32  /* Destructive */
  52. #define CRLF 33
  53. #define NOOP 34
  54. #define SAVEPOS 35
  55. #define RESTOREPOS 36
  56. #define LASTFUN 36
  57.  
  58.  
  59. /* Miscellaneous */
  60.  
  61. #define NFUNCS 32  /* Number of Sequences */
  62. #define FUNLEN 16
  63.  
  64. #define KEYLEN 16
  65.  
  66. struct emu_s
  67.     {
  68.     struct
  69.         {
  70.         short codes[FUNLEN];
  71.         short func;
  72.         }
  73.         funcs[NFUNCS];
  74.     struct
  75.         {
  76.         short len;
  77.         unsigned char chars[KEYLEN];
  78.         char nullpause_p;
  79.         }
  80.         keys[256];
  81.     unsigned char gchars[256];
  82.     int tophi_p;
  83.     int binrowoff;
  84.     int bincoloff;
  85.     int default_wrap_p;
  86.     int boldmask;
  87.     int faintmask;
  88.     int blinkmask;
  89.     int inversemask;
  90.     int attroffset;
  91.     int firstcoladdr;
  92.     int firstrowaddr;
  93.     };
  94.     
  95. extern struct emu_s emu;
  96.